#include<stdio.h>

#include"test.h"

void download(double Total)
{
  double speed=2.5*2.5*1024*1024;
  double Downloaded=0;

  while(Downloaded<=Total)
  {
    Bar(Total,Downloaded);
    Downloaded+=speed;
    sleep(1);
  }

  Bar(Total,Downloaded);
  printf("\n"); 
}

int main()
{
  download(100*1.0*1024*1024); 
  download(10*1.0*1024*1024); 
  download(1*1.0*1024*1024); 
  download(50*1.0*1024*1024); 
  download(200*1.0*1024*1024); 
  download(500*1.0*1024*1024); 
  return 0;
}
